TARGET = obj
CC = gcc
CFLAGS = -Wall -c

SOURCE = main.c func.c
OBJ = $(SOURCE:.c=.o)


$(TARGET):$(OBJ)
	$(CC) $(OBJ) -o $(TARGET)

%.o:%.c
	$(CC) $(CFLAGS) $<

#伪目标
.PHONY:clean

clean:
	rm -rf *.o $(TARGET)
